package vn.ugame.model.entity;

import java.util.Date;

@Entity
public class Order {
    @Collumn(name="orderId")
    private String orderId;
    private Customer customer;
    private Item item;
    @Collumn(name="activatedCode")
    private String activatedCode;
    @Collumn(name="orderDate")
    private java.util.Date orderDate;
    @Collumn(name="activatedDate")
    private java.util.Date activatedDate;
    @Collumn(name="imei")
    private String imei;
    @Collumn(name="price")
    private double price;
    @Collumn(name="priceUnit")
    private String priceUnit;
    @Collumn(name="priceVND")
    private double priceVND;

    public String getActivatedCode() {
        return activatedCode;
    }

    public void setActivatedCode(String activatedCode) {
        this.activatedCode = activatedCode;
    }

    public Date getActivatedDate() {
        return activatedDate;
    }

    public void setActivatedDate(Date activatedDate) {
        this.activatedDate = activatedDate;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public double getPriceVND() {
        return priceVND;
    }

    public void setPriceVND(double priceVND) {
        this.priceVND = priceVND;
    }

    public Order() {
    }

    public Order(String activatedCode, Date orderDate, Date activatedDate, String imei, double price, String priceUnit, double priceVND) {
        this.activatedCode = activatedCode;
        this.orderDate = orderDate;
        this.activatedDate = activatedDate;
        this.imei = imei;
        this.price = price;
        this.priceUnit = priceUnit;
        this.priceVND = priceVND;
    }
}
